package com.showcai.service.impl;

import com.showcai.module.activity.ActivityExecResoult;
import com.showcai.module.activity.ActivityParameters;
import com.showcai.myRunTime.MyRunTimeExcption;
import com.showcai.service.ActivityExecService;
import com.showcai.service.ServiceBase;
import org.springframework.stereotype.Service;

/**
 * Created by Baggio on 2018-12-4.
 */
@Service("offLinePopularize")
public class ActivityExecServiceImpl  extends ServiceBase implements ActivityExecService  {
    @Override
    public ActivityExecResoult exec(ActivityParameters activityParameters) throws MyRunTimeExcption {
        ActivityExecResoult activityExecResoult=new ActivityExecResoult();
Long productEntityId=activityParameters.getProductEntityId();
if(productEntityId!=null) {

    logger.info("offLinePopularize=====>>>>" + productEntityId);
    if (productEntityId != 1514267657851017l) {
        activityExecResoult.setProductEntityId(productEntityId);
    }
}
        return  activityExecResoult;


    }
}
